import request from '@/utils/request'
// 查询巡视作业指导书分页信息
export const getzhidaolist = params => request.get('pio-microservice-biz/pio/tour-instruction/page', { params })
// 获取用电下拉框数据
export const getqiyexialalist = () => request.get('pio-microservice-biz/cbm/organization/manage/list')
// 删除巡视作业指导书
export const delzhidaoapi = data => request.post(`pio-microservice-biz/pio/tour-instruction/delete?id=${data.id}`)
// 导出巡视作业指导书数据
export const exporttableapi = data => request.post(`pio-microservice-biz/pio/tour-instruction/excel`, data, { responseType: 'arraybuffer' })
// 复制巡视作业指导书
export const fuzhizhidaoapi=data=>request.get(`pio-microservice-biz/pio/tour-instruction/copy?fromManageNo=${data.fromManageNo}&toManageNo=${data.toManageNo}`)
// 查询字典下拉框选项
export const getyewuleiapi = params => request.get('core/dictionary/combo-item/list', { params })
// 查询字典下拉框选项
export const getzidianxialaapi = params => request.get('core/dictionary/combo-item/list', { params })
// 查询字典的扩展属性值
export const getbiglittleapi = params => request.get('core/dictionary/attribute', { params })
// 保存巡视作业指导书
export const postandputapi = data => request.post('pio-microservice-biz/pio/tour-instruction/save', data)
// 获取业务组织顶层单位信息列表
export const getarrdanweilistapi=()=>request.get('pio-microservice-biz/cbm/organization/top/list')